GtkColorEditor: Stop using deprecated API
authorMatthias Clasen <mclasen@redhat.com>
Thu, 2 Oct 2014 04:11:02 +0000 (00:11 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 2 Oct 2014 04:11:02 +0000 (00:11 -0400)
This call was not needed at all.

gtk/gtkcoloreditor.c

index c647b8c5f2741dc4693386b285808e8d271d6721..c2027500ad52e3b4b7300d8a1416aaf971c853a4 100644 (file)
@@ -345,8 +345,6 @@ popup_draw (GtkWidget      *popup,
 static void
 gtk_color_editor_init (GtkColorEditor *editor)
 {
-  GdkRGBA transparent = { 0, 0, 0, 0 };
-
   editor->priv = gtk_color_editor_get_instance_private (editor);
   editor->priv->use_alpha = TRUE;
 
@@ -370,8 +368,6 @@ gtk_color_editor_init (GtkColorEditor *editor)
     gtk_style_context_add_class (gtk_widget_get_style_context (editor->priv->h_slider),
                                  GTK_STYLE_CLASS_SCALE_HAS_MARKS_BELOW);
 
-  gtk_widget_override_background_color (editor->priv->overlay, 0, &transparent);
-
   /* Create the scaled popup adjustments manually here because connecting user data is not
    * supported by template GtkBuilder xml (it would be possible to set this up in the xml
    * but require 4 separate callbacks and would be rather ugly).